package com.sgj.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 设备实时运行表
 * </p>
 *
 * @author ${author}
 * @since 2022-10-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class BoxRun extends Model<BoxRun> {

    private static final long serialVersionUID=1L;

    private Long id;

    private String boxCode;

    private Double productNumberBegin;

    private Double productNumber;

    private Double productRate;

    private Date beginTime;

    private Date endTime;

    private Long workTime;

    private String remark;

    private Integer state;

    private Integer machineState;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}